//add file model

// new Controller
//ocument.write("<script type='text/javascript' src='view/loginview.js'></scr"+"ipt>");
var Dangnhap = function(){
    return this;
};
// process login
Dangnhap.prototype.kiemtra= function(ten,matkhau){
    var taikhoan = Taikhoan.find(ten);
    if(taikhoan.ten == ten && taikhoan.matkhau == matkhau){
        return true;
    }
    else
    {
        return false;
    };
};
Dangnhap.prototype.login= function(ten,matkhau){
  var view= new LoginView;
  var dn= new Dangnhap;
  //view.Show(dn.kiemtra(ten,matkhau));
  view.Show(true);
};